package br.com.spam.pipeline.instruction;

import br.com.spam.pipeline.ConverterHelper;
import br.com.spam.pipeline.core.Processor;

public abstract class JTypeInstruction extends Instruction
{
	private int targetAddr;

	public JTypeInstruction(String instruction, Processor processor)
	{
		super(instruction, processor);
		this.targetAddr = ConverterHelper.stringToInt(instruction.substring(6));
	}

	public int immediate()
	{
		return this.targetAddr;
	}
}
